Create and Submit Purchase Order
1. Form Initialization & Mandatory Header Details
- Given the user navigates to the Purchase Order module,
- When a new PO form is opened,
- Then the Document Type ("Purchase Order"), Your Party Type ("Company"), and Other Party Type ("Vendor") should be auto-populated.
- And the Date must default to the current date (editable).
- And the system must generate or allow selection of a Document Number Prefix (e.g., "PO-") and Document Number.
- And the user must be able to select the Purchase Order Status, Your Party Name (e.g., Vinayak Diamond Tools), and the vendor (To Party Name) from standard dropdowns.
- And the user must select the destination Stock Received at Warehouse (Mandatory).
2. Linking the Vendor Quotation
- Given the vendor (To Party Name) is selected,
- When the user clicks the Quotation From Party dropdown,
- Then the system should display a list of approved quotations associated with that specific vendor.
- And upon selecting a quotation, the system must automatically populate the Line Items grid with the agreed-upon items, quantities, and prices from that quotation to prevent manual data entry errors.
3. Line Item Management & Calculations
- Given the user is reviewing or manually adding line items,
- When items are added via the "Add New Item" button or populated from a quotation,
- Then the user must be able to verify or edit the Order Unit, Qty, Price (Excl GST), and Tax (%).
- And the system must automatically calculate the Taxable Amt and Gross Amt for each individual line item row.
- And the user must be able to delete a line item using the trash can icon.
4. Summary Totals & Currency
- Given all line items are finalized,
- When the user views the summary section at the bottom,
- Then they must be able to select the applicable Currency.
- And the system must auto-calculate the aggregate Taxable Amount, Total, apply any necessary Rounding Off, and display the final Total Amount.
5. Terms, Attachments, and Submission
- Given the PO totals are correct,
- When the user reviews the footer section,
- Then the Term Condition text area must auto-populate with standard company terms (e.g., "1. GST Extra as applicable. 2. Goods are as per actual. 3. Warranty as per the quotation."), which the user can edit if necessary.
- And the user can attach supplementary documents via the Acknowledgement Image upload and add internal notes in the Additional Note field.
- And upon clicking "Submit", the system must validate that all mandatory fields (marked with *) are filled.
- And upon successful validation, the PO is saved, the status is updated, and the document is ready to be transmitted to the vendor.